import {RouterModule, Routes} from '@angular/router';
import {NgModule} from '@angular/core';
import {MessageManagementComponent} from './message-management.component';

const routes: Routes = [
    {path: '', component: MessageManagementComponent,
        children: [
            {path: '', redirectTo: 'mes-system', pathMatch: 'full'},
            {path: 'mes-system', loadChildren: './mes-system/mes-system.module#MesSystemModule'},
            {path: 'mes-user', loadChildren: './mes-user/mes-user.module#MesUserModule'},
            {path: 'mes-activity', loadChildren: './mes-activity/mes-activity.module#MesActivityModule'},
            {path: 'mes-logistics', loadChildren: './mes-logistics/mes-logistics.module#MesLogisticsModule'},
            {path: 'mes-order', loadChildren: './mes-order/mes-order.module#MesOrderModule'},
            {path: 'mes-type', loadChildren: './mes-type/mes-type.module#MesTypeModule'},
            {path: 'mes-template', loadChildren: './mes-template/mes-template.module#MesTemplateModule'},
            {path: 'mes-log', loadChildren: './mes-log/mes-log.module#MesLogModule'},
            {path: 'mes-create', loadChildren: './mes-create/mes-create.module#MesCreateModule'},
        ]
    }
];

@NgModule({
    imports: [RouterModule.forChild(routes)],
    exports: [RouterModule]
})
export class MessageManagementRoutingModule {
}
